<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: luanzg <782114271@qq.com>
// +----------------------------------------------------------------------
use think\facade\Route;
use app\common\middleware\Admin;

Route::group(function () {
    // 素材列表栏目下路由
    Route::put('matedit', 'matEdit');
    Route::get('matlist', 'matList'); 
    Route::post('matadd', 'matadd'); 
    Route::post('matdel', 'matdel');

    Route::get('material/matlist', 'matDialogList'); 

    //素材类型栏目下路由 
    Route::get('material/mattype', 'mattypeList');
    Route::put('material/mattype', 'mattypeEdit'); 
    Route::post('material/mattype', 'mattypeAdd'); 
    Route::delete('material/mattype', 'mattypeDel');
})->prefix('Material/')->allowCrossDomain(headers())->middleware(Admin::class);
